/**
 * 
 */
package com.wubo.common.utils;

/**
 * @author WuBo
 * @CreateDate 2012-4-12 下午02:16:02
 */
public class NumberUtils {

	public static float round(float f, int point){
		float p = (float) Math.pow(10, point);
		return Math.round(f * p) / p;
	}
	
	public static float floor(float f, int point){
		float p = (float) Math.pow(10, point);
		return ((int) Math.floor(f * p)) / p;
	}
}
